package com.huang.service;

import com.huang.dao.TeacherMapper;
import com.huang.pojo.*;

import java.util.List;

public class TeacherServiceImpl implements TeacherService {

    private TeacherMapper teacherMapper;

    public void setTeacherMapper(TeacherMapper teacherMapper) {
        this.teacherMapper = teacherMapper;
    }


    public Teacher loginTeacher(Teacher teacher) {
        return teacherMapper.loginTeacher(teacher);
    }

    public int improveTeacherMsg(Teacher teacher) {
        return teacherMapper.improveTeacherMsg(teacher);
    }

    public int releaseActivity(Activity activity) {
        return teacherMapper.releaseActivity(activity);
    }

    public List<Activity> queryAllActivity(Teacher teacher) {
        return teacherMapper.queryAllActivity(teacher);
    }

    public Activity queryActivityByNo(String activityNo) {
        return teacherMapper.queryActivityByNo(activityNo);
    }

    public int alterActivity(Activity activity) {
        return teacherMapper.alterActivity(activity);
    }

    public int deleteActivity(Activity activity) {
        return teacherMapper.deleteActivity(activity);
    }

    public List<ActivityPeople> queryActivityStudent(Activity activity) {
        return teacherMapper.queryActivityStudent(activity);
    }

    public List<ActivityPeople> queryActivityStudent2(Activity activity) {
        return teacherMapper.queryActivityStudent2(activity);
    }

    public int removeActivityStudent(ActivityPeople activityPeople) {
        return teacherMapper.removeActivityStudent(activityPeople);
    }

    @Override
    public List<ApplyScore> viewApply(ApplyScore applyScore) {
        return teacherMapper.viewApply(applyScore);
    }

    @Override
    public int approveApply(Message message) {
        return teacherMapper.approveApply(message);
    }

    @Override
    public Teacher findTeacherByNo(Teacher teacher) {
        return teacherMapper.findTeacherByNo(teacher);
    }

    @Override
    public int updateStatue(ApplyScore applyScore) {
        return teacherMapper.updateStatue(applyScore);
    }

    @Override
    public List<ApplyScore> viewPassApply(Teacher teacher) {
        return teacherMapper.viewPassApply(teacher);
    }

    @Override
    public Message viewApplyMsg(ApplyScore applyScore) {
        return teacherMapper.viewApplyMsg(applyScore);
    }

    @Override
    public List<Message> applyCount(Message message) {
        return teacherMapper.applyCount(message);
    }

    @Override
    public List<ApplyScore> viewUnPassApply(Teacher teacher) {
        return teacherMapper.viewUnPassApply(teacher);
    }

    @Override
    public int updateAnswerStatus(ApplyScore applyScore) {
        return teacherMapper.updateAnswerStatus(applyScore);
    }

    @Override
    public int changeActivityStatus(Activity activity) {
        return teacherMapper.changeActivityStatus(activity);
    }

    @Override
    public int changeTeacherStatus(Teacher teacher) {
        return teacherMapper.changeTeacherStatus(teacher);
    }

    @Override
    public Teacher findTeacherByCode(Teacher teacher) {
        return teacherMapper.findTeacherByCode(teacher);
    }

    @Override
    public int feedBackTea(FeedBack feedBack) {
        return teacherMapper.feedBackTea(feedBack);
    }

    @Override
    public int addStuScore(StudentScore studentScore) {
        return teacherMapper.addStuScore(studentScore);
    }

    @Override
    public int changePwdTea(Teacher teacher) {
        return teacherMapper.changePwdTea(teacher);
    }

    @Override
    public int addActivityDetail(ActivityDescription activityDescription) {
        return teacherMapper.addActivityDetail(activityDescription);
    }

    @Override
    public int addActivityPhotoByNo(ActivityDescription activityDescription) {
        return teacherMapper.addActivityPhotoByNo(activityDescription);
    }

    @Override
    public int addActivityAnnexByNo(ActivityDescription activityDescription) {
        return teacherMapper.addActivityAnnexByNo(activityDescription);
    }

    @Override
    public ActivityDescription findActivityDescriptionByNo(Activity activity) {
        return teacherMapper.findActivityDescriptionByNo(activity);
    }

    @Override
    public List<UserDiary> teaViewSelfDiary(Teacher teacher) {
        return teacherMapper.teaViewSelfDiary(teacher);
    }


}
